import { request, get, post } from '../request'

/**
 * @description 添加短视频评论
 * @param params {
  "ParentId": 父级评论id,
  "ShortVideoId": 摄像头ID,
  "Comment": 评论内容,
  "ImgUrl": 图片url
}
 */
export const addShortVideoComment = (params) => {
  return post({
    url: 'ShortVideoInterActive/AddShortVideoComment',
    data: params
  })
}

/**
 * @description 删除短视频评论
 * @param params { "Id": 评论id }
 */
export const delShortVideoComment = (params) => {
  return post({
    url: 'ShortVideoInterActive/DelShortVideoComment',
    data: params
  })
}
/**
 * @description 查询评论
 * @param params { }
 */
export const queryShortVideoComment = (params) => {
  return post({
    url: 'ShortVideoInterActive/QueryShortVideoComment',
    data: params
  })
}

/**
 * @description 添加用户互动
 * @param params { OperateType:(like=1,star=2,forword=3,comment=4,stay=5,read=6),ShortVideoId:摄像机,Comment:评论 }
 */
export const addShortVideoInteractive = (params) => {
  return post({
    url: 'ShortVideoInterActive/AddShortVideoInteractive',
    data: params
  })
}
/**
 * @description 取消用户互动
 * @param params { }
 */
export const delShortVideoInteractive = (params) => {
  return post({
    url: 'ShortVideoInterActive/DelShortVideoInteractive',
    data: params
  })
}

/**
 * 
 * @param description 获取用户互动、点赞
 */
export const getShortVideoInteractive = (params) => {
  return post({
    url: 'ShortVideoInterActive/GetShortVideoInteractive',
    data: params
  })
}
/**
 * 
 * @param description 获取用户互动、点赞数量
 */
export const getShortVideoInteractiveCount = (params) => {
  return post({
    url: 'ShortVideoInterActive/GetShortVideoInteractiveCount',
    data: params
  })
}
